import Vue from "vue";
import App from "./App.vue";
// 引入elementui组件库
import ElementUI from "element-ui";
import store from "./store";
import router from "./router.js";
import request from "./utils/request";
import "./permission.js";

// 引入全局css样式控制文件
import "./assets/css/global.css";
import "element-ui/lib/theme-chalk/index.css";

Vue.use(ElementUI);

// import preview from "vue-photo-preview";
// import "vue-photo-preview/dist/skin.css";
// Vue.use(preview);
// 引入axios并配置
import axios1 from "./http";
import axios from "axios";
Vue.prototype.$http = axios1;
Vue.prototype.$axios = axios;

Vue.prototype.$request = request;

//注册组件
import MyBread from "./components/MyBread.vue";
Vue.component("my-bread", MyBread);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
